package com.example.moduletestb;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@SpringBootApplication
@RestController
@Slf4j
public class ModuleTestbApplication {

    public static void main(String[] args) {
        SpringApplication.run(ModuleTestbApplication.class, args);
    }

    @PostMapping("/cn.sdever_yrj.consume.pdm.consume.api")
    public String consumeApi(@RequestBody Map<String, Object> data) {
        log.info("Accept data  {}",data);
        return "消费成功";
    }
}
